<!-- field-bound box tpl -->

{if !empty($options)}
	<div class="field_bound_box categories">
		<ul>
			<li>
			<table class="fixed">
			<tr>
			{foreach from=$options item='option' name='fCats'}
				<td valign="top">
					<div class="item">
						{if ($icons_position == 'left' || $icons_position == 'top') && $option.Icon}
							<div style="{if $icons_position == 'left'}display: inline;{else}display: block;{/if}">
								<a class="category cat_icon" title="{$lang[$option.pName]}" href="{$rlBase}{if $config.mod_rewrite}{$path}/{$option.Key}/{else}?page={$pages.listings_by_field}&amp;{$path}={$option.Key}{/if}">
									<img src="{$smarty.const.RL_URL_HOME}files/{$option.Icon}" title="{$lang[$option.pName]}" alt="{$lang[$option.pName]}" />
								</a>
							</div>
						{/if}

						<a class="category" title="{$lang[$option.pName]}" href="{$rlBase}{if $config.mod_rewrite}{$path}/{$option.Key}/{else}?page={$pages.listings_by_field}&amp;{$path}={$option.Key}{/if}">{$lang[$option.pName]}</a>
						{if $show_count}<span>(<b>{$option.Count}</b>)</span>{/if}

						{if ($icons_position == 'right' || $icons_position == 'bottom') && $option.Icon}
							<div style="{if $icons_position == 'right'}display: inline;{else}display: block;{/if}">
								<a class="category cat_icon" title="{$lang[$option.pName]}" href="{$rlBase}{if $config.mod_rewrite}{$path}/{$option.Key}/{else}?page={$pages.listings_by_field}&amp;{$path}={$option.Key}{/if}">
									<img src="{$smarty.const.RL_URL_HOME}files/{$option.Icon}" title="{$lang[$option.pName]}" alt="{$lang[$option.pName]}" />
								</a>
							</div>
						{/if}
					</div>
				</td>
				
				{if $smarty.foreach.fCats.iteration%$columns_number == 0 && !$smarty.foreach.fCats.last}
				</tr>
				<tr>
				{/if}
			{/foreach}
			</tr>
			</table>
			</li>
		</ul>
		<div class="clear"></div>
	</div>
{/if}
<!-- field-bound box tpl end-->
